#define _CRT_SECURE_NO_WARNINGS 1
#include"SList.h"


void TestSList1()
{
	SLTNode* plist = NULL;
	SLPushFront(&plist, 1);
	SLPushFront(&plist, 2);
	SLPushFront(&plist, 3);
	SLPushFront(&plist, 4);
	SLTPrint(plist);

	SLPushBack(&plist, 5);
	SLTPrint(plist);
}

void TestSList2()
{
	SLTNode* plist = NULL;
	
	SLPushBack(&plist, 1);
	SLPushBack(&plist, 2);
	SLPushBack(&plist, 3);
	SLTPrint(plist);
}

void TestSList3()
{
	SLTNode* plist = NULL;
	SLPushFront(&plist, 1);
	SLPushFront(&plist, 2);
	SLPushFront(&plist, 3);
	SLPushFront(&plist, 4);
	SLTPrint(plist);

	SLPushBack(&plist, 5);
	SLTPrint(plist);

	SLPopFront(&plist);
	SLPopFront(&plist);
	SLTPrint(plist);

	SLEraseAfter(plist);
	SLTPrint(plist);
}


int main()
{
	TestSList3();
	return 0;
}

